package cn.tedu.springmvc.mapper;

import cn.tedu.springmvc.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    /**
     * 查询所有用户
     */
    List<User> getUserAll();

    User getUserById(int id);

    int updataUser(User user);

    int putUser(User user);

    int deleteUser(int id);
}
